<?php
/*\
 *	file: oh.packs.php
 *	------------------
 *
 *
\*/

function oh_pack_get_all() {
	global $oh;
	
	$oh['packs'] = array();
	$oh['packs'][] = $oh['path']."/modules";
	$oh['packs'][] = $oh['script']."/modules";	
	$ds = scandir($oh['path']."/modules");		
	foreach($ds as $d) {
		if ($d{0} == "_") {
			$oh['packs'][] = $oh['path']."/modules/".$d;
		}
	}
	
	return $oh['packs'];	
}

function oh_pack_add($pack) {
	global $oh;

	$oh['packs'][] = $pack;										
}


